import {createApp} from 'vue'
import App from './App.vue'
//导入路由
import router from './router'

//导入element-plus
import ElementPlus from 'element-plus'
//导入样式
import 'element-plus/dist/index.css'
//导入图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//导入语言包
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

//创建Vue实例
const app = createApp(App)
//加载element-plus 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
//安装element-plus
app.use(ElementPlus, {locale: zhCn})
//安装router
app.use(router)
//挂载
app.mount('#app')

